package com.hank.factory;

import com.hank.Dao.SessionDetailDao;
import com.hank.Dao.TaskDao;
import com.hank.Dao.UserInfoDao;
import com.hank.Dao.UserVisitActionDao;
import com.hank.domain.UserInfo;
import com.hank.impl.SessionDetailDaoImpl;
import com.hank.impl.TaskDaoImpl;
import com.hank.impl.UserInfoImpl;
import com.hank.impl.UserVisitActionImpl;

public class DaoFactory {
    /**
     * 使用工厂模式(数据库)
     */
    public static TaskDao getTaskDao(){
        return new TaskDaoImpl();
    }

    public static SessionDetailDao getSessionDetailDao(){
        return new SessionDetailDaoImpl();
    }

    public static UserInfoDao getUserInfoDao(){return new UserInfoImpl();}

    public static UserVisitActionDao getUserVisitActionDao(){return new UserVisitActionImpl();}
}
